/*
 * @Author: HeAo
 * @Date: 2021-09-27 16:03:23
 * @LastEditTime: 2021-09-27 16:11:52
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2105\3-1-ES6\day03\5-Set集合.js
 * 别乱动！
 */
let arr = [1, 2, 3, 4, 1, 4, 5, 6, 7, 8, 5, 6, 8]
let set = new Set(arr)
// console.log(Array.from(set));

set.add(100)
console.log(set.delete(1));
console.log(set.has(100));
// set.clear()
console.log(set.size);
console.log(set);
console.log(set.keys());
console.log(set.values());
console.log(set.entries());
set.forEach(item => {
  console.log(item);
})